import { Task } from '../../../common/helper/util-helper';
// tslint:disable-next-line: class-name
export class listModel {
    public projectId: string;
    public filter: string;
    public sorting: string;
    public maxResultCount: number = 10;
    public skipCount: number = 0;

    constructor(obj?) {
        const instance = this;
        if (!obj) return;
        (obj.projectId) && (instance.projectId = obj.projectId);
        (obj.filter) && (instance.filter = obj.filter);
        (obj.sorting) && (instance.sorting = obj.sorting);
        (obj.maxResultCount) && (instance.maxResultCount = obj.maxResultCount);
        (obj.skipCount) && (instance.skipCount = obj.skipCount);
    }
}

// tslint:disable-next-line: class-name
export class addDrawingsModel {
    public modelId: string;
    public projectId: string;
    public fileId: string;
    public size: number = 0;
    public fileName: string;
    public name = '';
    public path: string;
    public creatorUserName: string;
    public creationTime: string;
    public tenantId: number;
    public id: string;
    public modelGroupId: string;
    public hash: string;
    public taskId: string;
    public SSOCreatorUserId: any;
    public type: string;

    constructor(obj?) {
        const instance = this;
        if (!obj) return;
        (obj.modelId) && (instance.modelId = obj.modelId);
        (obj.projectId) && (instance.projectId = obj.projectId);
        (obj.fileId) && (instance.fileId = obj.fileId);
        (obj.size) && (instance.size = obj.size);
        (obj.fileName) && (instance.fileName = obj.fileName);
        (obj.name) && (instance.name = obj.name);
        (obj.path) && (instance.path = obj.path);
        (obj.creatorUserName) && (instance.creatorUserName = obj.creatorUserName);
        (obj.creationTime) && (instance.creationTime = obj.creationTime);
        (obj.tenantId) && (instance.tenantId = obj.tenantId);
        (obj.id) && (instance.id = obj.id);
        (obj.modelGroupId) && (instance.modelGroupId = obj.modelGroupId);
        (obj.hash) && (instance.hash = obj.hash);
        (obj.taskId) && (instance.taskId = obj.taskId);
        (obj.SSOCreatorUserId) && (instance.SSOCreatorUserId = obj.SSOCreatorUserId);
        (obj.type) && (instance.type = obj.type);
    }
}

// export const imgType = 'image/gif,image/jpeg,image/jpg,image/png,image/svg,application/pdf';
export const imgType =  '.dwg';
